package yunjiao.javatutorials.designpatterns.builder.food.beverages;

import lombok.Getter;

/**
 * 饮料大小
 *
 * @author yangyunjiao
 */
@Getter
public enum BeverageSize {
    XS("Extra Small", 110),
    S("Small", 150),
    M("Medium", 210),
    L("Large", 290);

    private final String name;

    private final int calories;

    BeverageSize(String name, int calories) {
        this.name = name;
        this.calories = calories;

    }

}
